/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bs.global.rn;

import bs.global.dao.SucursalDAO;
import bs.global.modelo.Sucursal;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author ctrosch
 */
@Stateless
public class SucursalRN {
    @EJB
    private SucursalDAO sucursalDAO;

    public Sucursal getSucursal(String codigo){
        return sucursalDAO.getSucursal(codigo);
    }

    public List<Sucursal> getLista(){
        return sucursalDAO.getLista();
    }

    

    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
 
}
